From: Ian Jackson Date: Mon, 12 Dec 2011 17:48:42 +0000 (+0000) Subject: libxl: libxl_ctx_free should free the ctx X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=f6678b04991744e0024678835b9afb32dfe9fa36;p=xen.git libxl: libxl_ctx_free should free the ctx Signed-off-by: Ian Jackson Acked-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 7a973d0831..35bdf52a9a 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -93,6 +93,7 @@ int libxl_ctx_free(libxl_ctx *ctx) if (ctx->xch) xc_interface_close(ctx->xch); libxl_version_info_dispose(&ctx->version_info); if (ctx->xsh) xs_daemon_close(ctx->xsh); + free(ctx); return 0; }